<?php defined('BASEPATH') OR exit('No direct script access allowed');?>


<!-- +++++ Post +++++ -->
<div class="pink">
    <div class="container">
        <div class="row">

            <!-- +++++ 面包屑导航 +++++ -->
            <div class="col-lg-8 col-lg-offset-2">
                <ol class="my-breadcrumb">
                    <li><a href="/blog/tid">BlogList</a></li>
                    <li>
                        <a href="/blog/tid/<?=$type['id']?>">
                            <?=$type['name']?>
                        </a>
                    </li>
                    <li class="active"><?=$blog['title']?></li>
                </ol>
            </div>

            <div class="col-lg-8 col-lg-offset-2">

                <!-- +++++ 博客 +++++ -->
                <div class="my-well">
                    <div class="avatar">
                        <img src="/assets/public/img/user.jpg">
                    </div>
                    <div class="blog-info">
                        <div class="blog-info-at">Li Lijie - <b><?=$blog['title']?></b></div>
                        <div class="blog-info-date"><?=$blog['date']?></div>
                    </div>
                    <div class="blog-content"><?=$blog['content']?></div>
                    <hr>
                    <!-- +++++ 返回按钮 +++++ -->
                    <p><a href="#" onclick="javascript :history.back();"><span class="fa fa-reply"> 返回</span></a></p>
                </div>

                <!-- +++++ 评论区 +++++ -->
                <div class="my-well">
                    <table width="100%">
                        <tr>
                            <td align="left" width="50%">
                                <i class="fa fa-commenting-o note"> 评论区(33)</i>
                            </td>
                            <td align="right" width="50%">
                                <a class="btn btn-danger" id="comment">留下评论</a>
                            </td>
                        </tr>
                    </table>
                    <hr>

                    <?php for ($i=0;$i<3;$i++): ?>
                    <div class="comment">
                        <div class="avatar">
                            <img src="/users/header_img/pic04.jpg">
                        </div>
                        <div class="comment-li">
                            <div class="comment-li-auth">test123</div>
                            <div class="comment-li-content">噼里啪啦噼里啪啦噼里啪啦漂流瓶</div>
                            <div class="comment-li-date">2017-08-19</div>
                        </div>
                    </div>
                    <?php endfor; ?>

                    <form class="form-group" action="" method="post">
                        <div class="comment-text">
                            <textarea name="comment" class="form-control" placeholder="在此处留下评论..."></textarea><br>
                            <button type="submit" value="submit" class="btn btn-danger">提交</button>
                        </div>
                    </form>

                </div>
            </div>
        </div><!-- /row -->
    </div> <!-- /container -->
</div><!-- /white -->

<script type="text/javascript">
    $(document).ready(function(){
        $("#comment").click(function(){
            $("textarea").focus();
        });
    });
</script>